<h1>New accomodation</h1>

<% form_for(@accomodation) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :room_id %><br />
    <%= f.text_field :room_id %>
  </p>
  <p>
    <%= f.label :guest_id %><br />
    <%= f.text_field :guest_id %>
  </p>
  <p>
    <%= f.label :emp_id %><br />
    <%= f.text_field :emp_id %>
  </p>
  <p>
    <%= f.label :arrive_date %><br />
    <%= f.date_select :arrive_date, :start_year => (Date.today.year), :end_year => (Date.today.year), :start_month => (Date.today.month), :end_month => (Date.today.month), :start_day => (Date.today.day), :end_day => (Date.today.day) %>
  </p>
  <p>
    <%= f.label :exit_date %><br />
    <%= f.date_select :exit_date %>
  </p>
  <p>
    <%= f.submit 'Create' %>
  </p>
<% end %>

<%= link_to 'Back', accomodations_path %>